﻿namespace Sgr.Identity
{
    /// <summary>
    /// 身份验证配置参数
    /// </summary>
    public class IdentityOptions
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public IdentityOptions()
        {
            UseSignature = false;
            UseCaptcha = false;
            JWT = JwtOptions.CreateDefault();
            Cookie = HttpCookieOptions.CreateDefault();
        }

        /// <summary>
        /// 是否启用签名验证
        /// </summary>
        public bool UseSignature { get; set; }

        /// <summary>
        /// 是否启用验证码
        /// </summary>
        public bool UseCaptcha { get; set; }

        /// <summary>
        /// JWT配置参数
        /// </summary>
        public JwtOptions JWT { get; set; }

        /// <summary>
        /// Cookie配置参数
        /// </summary>
        public HttpCookieOptions Cookie { get; set; }
    }
}